OOF2: The Manual
Name
Vector XYFunction — Compute an arbitrary vector function of x and y.
Output Categories
Parameters
fx
- The x component of the function as a Python function of x and y Type: A string defining a function of x and y.
fy
- The y component of the function as a Python function of x and y Type: A string defining a function of x and y.
Description
Compute a vector function of spatial coordinates
x
and y
on a Mesh
.
The function is evaluated by the Python interpreter, so it can contain any legal Python expressions. Any variables defined in the OOF2 Console window can be used in the function. For example, if you type
slope=3
in the Console, you can enter
slope*x + y
for fx
or fy
. The Python
math library is also available. You could set
fx
to
sin(x*y/100)
for example.